package com.anyou.quartz.task;

import com.anyou.mall.goo.service.IGoodsCouponService;
import com.anyou.mall.supply.service.ISupplyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 补给订单定时任务
 * @author xq
 */
@Slf4j
@Component("supplyTask")
public class SupplyTask {
    @Autowired
    private ISupplyService supplyService;

    /**
     * 定时生成补给订单
     * 每天0点1分执行一次
     */
    public void ceateBjOrderTask() {
        log.info("定时生成补给订单-开始执行!");
        supplyService.ceateBjOrderTask();
        log.info("定时生成补给订单-执行成功!");
    }
}
